export default function (type_code) {
  const nameEnum = {
    ptjk: '普通监控',
    D0112_1: '普通监控',
    yyjk: '鹰眼监控',
    rljk: '人脸监控',
    ydjk: '移动监控',
    mj: '门禁',
    dz: '道闸',
    ygbj: '烟感报警',
    '7_01': '烟感报警',
    dqjc: '大气监测',
    szjc: '水质监测',
    znsh: '智能手环',
  };
  return nameEnum[type_code];
}

const gzsbXlgcType = {
  D01121: { name: '普通监控', type: 'ptjk' },
  D01122: { name: '鹰眼监控', type: 'yyjk' },
  D01123: { name: '移动监控', type: 'ydjk' },
  D01124: { name: '人脸监控', type: 'rljk' },
  D01125: { name: '天网监控', type: 'twjk' },
  D01126: { name: '高空摄像', type: 'gkjk' },
  D01127: { name: '雪亮工程', type: 'xlgc' },
  D01128: { name: '电梯监控', type: 'dtjk' },
  D01129: { name: 'a监控', type: 'aijk' },
};

export function getGzsbXlgcType(flag) {
  return gzsbXlgcType[flag] ? gzsbXlgcType[flag].type : null;
}
export function getGzsbXlgcName(flag) {
  return gzsbXlgcType[flag] ? gzsbXlgcType[flag].name : null;
}
